package com.tourism.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tourism.order.mapper.TourismOrderMapper;
import com.tourism.order.domain.TourismOrder;
import com.tourism.order.service.ITourismOrderService;

/**
 * 产品订单Service业务层处理
 * 
 * @author silenceEcho
 * @date 2025-04-13
 */
@Service
public class TourismOrderServiceImpl implements ITourismOrderService 
{
    @Autowired
    private TourismOrderMapper tourismOrderMapper;

    /**
     * 查询产品订单
     * 
     * @param orderId 产品订单主键
     * @return 产品订单
     */
    @Override
    public TourismOrder selectTourismOrderByOrderId(Long orderId)
    {
        return tourismOrderMapper.selectTourismOrderByOrderId(orderId);
    }

    /**
     * 查询产品订单列表
     * 
     * @param tourismOrder 产品订单
     * @return 产品订单
     */
    @Override
    public List<TourismOrder> selectTourismOrderList(TourismOrder tourismOrder)
    {
        return tourismOrderMapper.selectTourismOrderList(tourismOrder);
    }

    /**
     * 新增产品订单
     * 
     * @param tourismOrder 产品订单
     * @return 结果
     */
    @Override
    public int insertTourismOrder(TourismOrder tourismOrder)
    {
        return tourismOrderMapper.insertTourismOrder(tourismOrder);
    }

    /**
     * 修改产品订单
     * 
     * @param tourismOrder 产品订单
     * @return 结果
     */
    @Override
    public int updateTourismOrder(TourismOrder tourismOrder)
    {
        return tourismOrderMapper.updateTourismOrder(tourismOrder);
    }

    /**
     * 批量删除产品订单
     * 
     * @param orderIds 需要删除的产品订单主键
     * @return 结果
     */
    @Override
    public int deleteTourismOrderByOrderIds(Long[] orderIds)
    {
        return tourismOrderMapper.deleteTourismOrderByOrderIds(orderIds);
    }

    /**
     * 删除产品订单信息
     * 
     * @param orderId 产品订单主键
     * @return 结果
     */
    @Override
    public int deleteTourismOrderByOrderId(Long orderId)
    {
        return tourismOrderMapper.deleteTourismOrderByOrderId(orderId);
    }
}
